
import BaseService from '@/api/BaseService'
class MdService extends BaseService {
  getMd (commonInfo, mdCode, callback = () => {}) {
    const data = {
      commonInfo: commonInfo,
      value: mdCode
    }
    return this.remoteCall('/md/getMd', data, callback)
  }

  getMvs(commonInfo, mdCode, callback = () => {}) {
    const data = {
      commonInfo: commonInfo,
      value: mdCode
    }
    return this.remoteCall('/md/getMvs', data, callback)
  }

  getMv (commonInfo, mdCode, mvCode, callback = () => {}) {
    const data = {
      commonInfo: commonInfo,
      value1: mdCode,
      value2: mvCode
    }
    return this.remoteCall('/md/getMv', data, callback)
  }
}

const mdService = new MdService(false)
export default mdService
